package cn.edu.sgu.www.mhxysy.entity.except;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 账号
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("jsgl_zhb")
public class Account implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "账号ID")
	private String id;

	/**
	 * 安全手机
	 */
	@ApiModelProperty(value = "安全手机")
	private String phone;

	/**
	 * 账号
	 */
	@ApiModelProperty(value = "账号")
	private String account;

	public String uuid() {
		return IdentifierPrefixes.PREFIX_ACCOUNT + StringUtils.uuid();
	}

}